package info.johnwheeler.gaestorage.test;

import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import info.johnwheeler.gaestorage.servlet.AudienceServlet;

import javax.servlet.http.HttpServletRequest;

import junit.framework.TestCase;
  
public class test extends TestCase {  
    public void testAudience() {  
    	HttpServletRequest requestMock = createMock(HttpServletRequest.class);  
        expect(requestMock.getParameter("processNumber")).andReturn("8898");
        replay(requestMock);  
  
        AudienceServlet audienceServlet = new AudienceServlet ();  
        assertTrue(audienceServlet.loginValido(requestMock));  
    }  
}  